Extract building application module into separate method

so that this method can be overriden if someone needs use complex
 application builders.