@JuanIgnacioPérezSacristán Inheritance will pull all the code together. You have to split into separate contracts so each can be deployed independently. Look at status ico github.com/status-im/status-network-token, they have separate contracts and a script that will deploy them, and set the initial configuration. They use truffle, that make really easy to deploy several contracts, and configure them.
– IsmaelJun 28 '17 at 22:26

1

Sometimes make for sense to use libraries if the code can be reused, like in SafeMath for example. Because libraries use the same shared data. If the contracts are separated then they can only access the data through the public methods.
– IsmaelJun 28 '17 at 22:29

By the way the discussion to increase gas limit are on the way, some miner pools already increased it but some huge one are still using this "old" limit used to prevent DDOS attacks. This thread on Reddit explains a bit the current issue with gas limit.

Very helpful tips. My code is already splitted into several contracts, but still requires too much gas to deploy.
– Juan Ignacio Pérez SacristánJun 28 '17 at 21:17

1

I edited my answer. Gas limit is increasing and it seems target is to reach 6.7M. Enough to deploy your contract. I hope for you in a few hours/days you'll be able to do it without touching your contract
– CremaJun 29 '17 at 12:05

1

Hello again :) We reached more than 6M for the gas limit, can you try to deploy the contract again?
– CremaJun 29 '17 at 17:44